package per.wsj.okhttp

import android.app.Activity
import android.content.Intent


inline fun <reified T : Activity> Activity.startActivity() {
    startActivity(Intent(this, T::class.java))
}

inline fun <reified T : Activity> Activity.startActivity(vararg params: Pair<String, String>) {
    val intent = Intent(this, T::class.java)
    params.forEach {
        intent.putExtra(it.first, it.second)
    }
    startActivity(intent)
}

fun test() {
    
}